#! /bin/bash

# QUERY_STRING "id=(002,003,004)" --> PATTERN "id=(002|003|004)"
export PATTERN=`echo "$QUERY_STRING" | sed 's/,/|/g'`

echo '# Cardiology patient data'
egrep "$PATTERN" $1
exit 0

